<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'buying-equipment-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Những trường có dấu <span class="required">*</span> bắt buộc phải điền vào.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'department'); ?>
		<?php echo $form->textField($model,'department',array('size'=>60,'maxlength'=>256)); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'received_date'); ?>
		<?php
			$form->widget('zii.widgets.jui.CJuiDatePicker', array(
					'name'=>CHtml::activeName($model,'received_date'),   
					'model'=>$model,
					'attribute'=>'received_date',
				));
			?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'detail'); ?>
		<?php echo $form->textArea($model,'detail',array('rows'=>6, 'cols'=>50)); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'note'); ?>
		<?php echo $form->textArea($model,'note',array('rows'=>6, 'cols'=>50)); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Lưu' : 'Lưu'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->